package com.third.clock.manager;

import android.content.Context;
import android.text.TextUtils;
import android.widget.ImageView;

import com.bumptech.glide.Glide;

/**
 * Created by Administrator on 2018/8/7 0007.
 */

public class ImgaeEngineManager {

    public ImgaeEngineManager(){

    }

    public void loadImage(Context context, final String url, ImageView imageView) {
        if(context==null) return;
        if(TextUtils.isEmpty(url)) return;
        if(imageView==null) return;
        try {
            Glide.with(context)
                    .load(url)
                    .asBitmap()
                    .fitCenter()
                    .into(imageView);
        }catch (Exception e){}
    }

}
